{config_load file="$language/lang.conf" section="boxes"}
{config_load file="$language/cleanshop.conf" section="templatica_index"}
{if $deny_cart neq 'true'}
<script type="text/javascript" src="jscript/jscript_ajax_cart.js"></script>
<div id="divShoppingCart">
<div class="cart-header">
{if $empty=='false'}
<!-- если в корзине есть товар -->
	<div class="c-left">
		{#templatica_box_shopping_cart_qty#}: <span class="total-prod">{php}echo $_SESSION['cart']->count_contents();{/php}</span> {#templatica_box_shopping_cart_qty2#}<br />
		{$UST}{#text_total#} <span class="total-cost">{$TOTAL}</span>{if $DISCOUNT} <span class="discount" title="{#text_discount#} {$DISCOUNT}">-{$DISCOUNT}</span>{/if}
	</div>

	<div class="c-right">
		<a href="{$LINK_CHECKOUT}" class="bold">{#templatica_box_shopping_cart_checkout#}</a><br />
		<div class="show-prod"><span>{#templatica_box_shopping_cart_show#}</span></div>
		<ul class="the_menu">
			{foreach name=aussen item=products_data from=$products}
			<li><a href="{$products_data.LINK}" title="{$products_data.NAME}"><span class="price">({$products_data.QTY}x)<!-- {$products_data.PRICE} --></span>{$products_data.NAME|os_truncate:$smarty.const.MAX_DISPLAY_CART:"...":true}</a></li> 
			{/foreach}
		</ul>
	</div>
<!-- #если в корзине есть товар -->
{else}
	<!-- пустая корзина -->
	<div class="cart-empty">{#text_empty_cart#}</div>
	<!-- #пустая корзина -->
{/if}
</div>
</div>
{else}
<div class="cart-header">
	<div class="cart-empty">{#templatica_box_shopping_cart_checkout2#}</div>
</div>
{/if}